<div class="container">
    <div class="page-header">
	    <h3><strong>记账本</strong></h3>
    </div>	    	
</div>	
<div class="wrapBtn">
	<button class="btn btn-primary" ng-click="zd()">添加账单</button>
</div>
<div class="shuXie">
<div class="wrapForm">
	<div>
		<span>名称：</span>
		<input type="text" ng-model="name"/>
	</div>
	<div>
		<span>金额：</span>
		<input type="text" ng-model="money"/>
	</div>
	<div>
		<span>时间：</span>
		<input type="text" ng-model="time"/>
	</div>
	<div>
		<input type="button" value="提交" class="btn btn-success" ng-click="add()"/>
	</div>
	<div>
		<input type="button" value="取消"  class="btn btn-info" ng-click="quxiao()"/>
	</div>
</div>
</div>
<!--表格-->
<div class="container">
	<table border="1" cellspacing="0">
		<tr class="row">
			<th class="col-xs-3 col-md-3">名称</th>
			<th class="col-xs-3 col-md-3">金额</th>
			<th class="col-xs-5 col-md-3">时间</th>
			<th class="col-xs-1 col-md-3">操作</th>
		</tr>
		<tr class="row" ng-repeat="v in zhi">
			<td class="col-xs-3 col-md-3">{{v.name}}</td>
			<td class="col-xs-3 col-md-3">{{v.money|currency:'￥'}}</td>
			<td class="col-xs-5 col-md-3">{{v.time}}</td>
			<td class="col-xs-1 col-md-3"><button class="btn btn-warning rm" ng-click="remove($index)">删除</button></td>
		</tr>
	</table>
</div>
<!--表格-->
 <div class="container zj">
 	<span>消费总金额:</span><b>{{tx|currency:'￥'}}</b>
 </div>       	
        	
        